const { generateUUID } = require("../utils/index");

class LogModel {
  constructor() {}

  static async addDelLog(data, ctx) {
    const _user = ctx.state.user;

    const _json = JSON.stringify(data);
    return `INSERT INTO dellogs SET id=${generateUUID()},createBy=${
      _user.id
    },createDate=${new Date()},updateBy=${
      _user.id
    },updateDate=${new Date()},json=${_json}`;
  }
}

module.exports = LogModel;
